import request from '@/utils/request'

//获取心愿列表
export function getWishList(data) {
    return request({
        url: '/wishs',
        method: 'post',
        data
    })
}
//删除心愿
export function deleteWish(product_id) {
    return request({
        url: `/wish/${product_id}`,
        method: 'delete',
    })
}
//获取心愿详情
export function getWishDetail(product_id) {
    return request({
        url: `/wish/${product_id}`,
        method: 'get',

    })
}
//获取买手列表
export function getBuyList() {
    return request({
        url: '/buyer',
        method: 'get',

    })
}
//买手接单
export function buyReceiveHope(data) {
    return request({
        url: '/trip',
        method: 'post',
        data
    })
}